<extend name="Base/common_ionic"/>
<block name="style">
<style>
</style>
</block>

<block name="body">
    <div>
        <a class="item item-avatar" href="#">
            <img src="{$account.avatar}"/>
            <h2>{$account.nickname}</h2>
            <span class="item-text">累计收益: ￥{$total|format_cny}</span>
            <span class="item-note">未绑定支付宝</span>
        </a>
        <div class="space-10"></div>
        <a class="item item-icon-right" href="{:U('Index/withdrawal_apply')}&clientid={$clientid}">
            可提现金额 ￥{$account.balance|convert_amount|format_cny}
            <span class="item-note">
                申请提现
            </span>
            <i class="icon ion-social-yen-outline"></i>
        </a>
    </div>

    <a class="button button-full button-positive" href="{:U('Index/fanli_apply')}&clientid={$clientid}">
        返利申请
    </a>
    <ul class="list">
        <div class="item item-divider"><i class="icon ion-paperclip"></i> 返利记录</div>
        <empty name="list">
            <li class="item">
                <h2 class="center">您还没有返利记录</h2>
            </li>
        </empty>
        <notempty name="list">
            <volist name="list" id="data">
            <li class="item">
                <h2>{$data.products}</h2>
                <p>订单号:{$data.orders}</p>
                <span class="item-text">{$data.applyAt|format_time}</span>
                <span class="item-note">{$data|apply_result}</span>
            </li>
            </volist>
        </notempty>
    </ul>
</block>
